<%--
  Created by IntelliJ IDEA.
  User: 小柒的Java
  Date: 2021/5/8
  Time: 19:05
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>JSON数组</title>
    <script type="text/javascript">
        var obj=[
            {"sname":"吴杰","sid":14,"city":"深圳"},
            {"sname":"吴杰爸爸","sid":59,"city":"亚马逊"}
        ];
        for (let i = 0; i <obj.length; i++) {
            window.alert(obj[i]);
        }

    </script>

</head>
<body>

</body>
</html>
